.class Lcom/example/m6wmr/ShopimgActivity$1;
.super Landroid/os/Handler;
.source "ShopimgActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/ShopimgActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/ShopimgActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/ShopimgActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/ShopimgActivity$1;->this$0:Lcom/example/m6wmr/ShopimgActivity;

    .line 81
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    .line 85
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 87
    iget v2, p1, Landroid/os/Message;->arg1:I

    packed-switch v2, :pswitch_data_0

    .line 111
    :cond_0
    :goto_0
    :pswitch_0
    return-void

    .line 91
    :pswitch_1
    iget-object v2, p0, Lcom/example/m6wmr/ShopimgActivity$1;->this$0:Lcom/example/m6wmr/ShopimgActivity;

    const-string v3, "\u63d0\u793a\u4fe1\u606f"

    iget-object v4, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, v3, v4}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 97
    :pswitch_2
    iget-object v2, p0, Lcom/example/m6wmr/ShopimgActivity$1;->this$0:Lcom/example/m6wmr/ShopimgActivity;

    const v3, 0x7f0c030b

    invoke-virtual {v2, v3}, Lcom/example/m6wmr/ShopimgActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 98
    .local v1, "tv_name":Landroid/widget/TextView;
    iget-object v2, p0, Lcom/example/m6wmr/ShopimgActivity$1;->this$0:Lcom/example/m6wmr/ShopimgActivity;

    # getter for: Lcom/example/m6wmr/ShopimgActivity;->name:Ljava/lang/String;
    invoke-static {v2}, Lcom/example/m6wmr/ShopimgActivity;->access$0(Lcom/example/m6wmr/ShopimgActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 99
    iget-object v2, p0, Lcom/example/m6wmr/ShopimgActivity$1;->this$0:Lcom/example/m6wmr/ShopimgActivity;

    iget-object v3, p0, Lcom/example/m6wmr/ShopimgActivity$1;->this$0:Lcom/example/m6wmr/ShopimgActivity;

    iget-object v3, v3, Lcom/example/m6wmr/ShopimgActivity;->listcx:Ljava/util/List;

    invoke-virtual {v2, v3}, Lcom/example/m6wmr/ShopimgActivity;->initImages(Ljava/util/List;)V

    .line 100
    iget-object v2, p0, Lcom/example/m6wmr/ShopimgActivity$1;->this$0:Lcom/example/m6wmr/ShopimgActivity;

    # invokes: Lcom/example/m6wmr/ShopimgActivity;->initAdapter()V
    invoke-static {v2}, Lcom/example/m6wmr/ShopimgActivity;->access$1(Lcom/example/m6wmr/ShopimgActivity;)V

    .line 102
    iget-object v2, p0, Lcom/example/m6wmr/ShopimgActivity$1;->this$0:Lcom/example/m6wmr/ShopimgActivity;

    iget-object v2, v2, Lcom/example/m6wmr/ShopimgActivity;->listcx:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_1
    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/Shopimg;

    .line 103
    .local v0, "ll":Lbean/Shopimg;
    invoke-virtual {v0}, Lbean/Shopimg;->getId()Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Lcom/example/m6wmr/ShopimgActivity$1;->this$0:Lcom/example/m6wmr/ShopimgActivity;

    # getter for: Lcom/example/m6wmr/ShopimgActivity;->imgid:Ljava/lang/String;
    invoke-static {v4}, Lcom/example/m6wmr/ShopimgActivity;->access$2(Lcom/example/m6wmr/ShopimgActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 104
    iget-object v3, p0, Lcom/example/m6wmr/ShopimgActivity$1;->this$0:Lcom/example/m6wmr/ShopimgActivity;

    # getter for: Lcom/example/m6wmr/ShopimgActivity;->viewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v3}, Lcom/example/m6wmr/ShopimgActivity;->access$3(Lcom/example/m6wmr/ShopimgActivity;)Landroid/support/v4/view/ViewPager;

    move-result-object v3

    iget-object v4, p0, Lcom/example/m6wmr/ShopimgActivity$1;->this$0:Lcom/example/m6wmr/ShopimgActivity;

    iget-object v4, v4, Lcom/example/m6wmr/ShopimgActivity;->listcx:Ljava/util/List;

    invoke-interface {v4, v0}, Ljava/util/List;->indexOf(Ljava/lang/Object;)I

    move-result v4

    invoke-virtual {v3, v4}, Landroid/support/v4/view/ViewPager;->setCurrentItem(I)V

    goto :goto_1

    .line 87
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method
